In this article, we will review the benefits and drawbacks of using database partitioning (sharding) to help improve performance and maintenance tasks.
The Spark engine supports several different file formats and in this article, we look at the pros and cons of each file type and which might be best to use.
Learn about Azure Synapse Link to replicate one or more tables from Azure SQL Database or SQL Server 2022 to a dedicated SQL Pool in an Azure Synapse Analytics workspace.
Auto-Create statistics is a well-known feature critical for the database performance. When one statistic is auto created, changing the table structure is not blocked by the presence of the statistic. An auto-created statistics is also dropped automatically when a schema change happens. On the other hand, if the statistic is created by the user, any …
The post SQL Server 2022: How Auto-Drop Statistics Work appeared first on Simple Talk.
In this article, we look at different ways to check query syntax by using PARSEONLY, NOEXEC as well as executing the code to see how SQL Server handles each of these.
A new topic has been added to the Unicode section on SQL Snippets. "Code Points in SQL or PL/SQL" examines various techniques for determining a character's Unicode code point. One technique involves creating a custom PL/SQL function called UNICODEPOINT(). When compared to other techniques UNICODEPOINT() proves to be faster, leaner, and more scalable. It also works on more Oracle versions than the other techniques....
A new section on Unicode has been added to SQL Snippets. Topics covered include
a practical overview of Unicode
Unicode support in Oracle
working with Unicode data in UNIX and Windows XP operating systems
viewing Unicode data in Excel 2007, Firefox, Internet Explorer, Notepad, PuTTY, SQL Developer, and SQL*Plus
transferring Unicode data with WinSCP and ftp....
: SQL Snippets Tutorials for Oracle Developers Custom Search Home A0 A0 SQL Features A0 A0 SQL Techniques A0 A0 Miscellany A0 A0 About A0 A0 Blog A0 A0 Site Map A0 A0 Search A0 A0 Home Blog A0 15 Minutes of Fame A0 Happy First Anniversary SQL Snippets A0 And Now for Something Completely Different A0 Google Street View A0 Getting IT Right A0 The Task Spiral A0 The Choice A0 It's Alive A0 Snippets in the Strangest Places A0 The Journey Begins A0 About the Author A0 Next A0 Read Using SQL Snippets before using any of this site's sample code or techniques on your own . systems Joe's Blog 15 Mintues of Fame 2009-07-25 They say everyone gets at least 15 minutes of fame in their lifetime . Here's my total to-date . 1 minute Middle School my picture and some artwork appeared in The Toronto Star
A new tutorial has been added to SQL Snippets exploring the GROUP BY clause and related extensions such as GROUPING SETS, ROLLUP, and CUBE. Group related functions such as GROUP_ID, GROUPING, and GROUPING_ID are also covered....
The "Columns to String: Comma Separated Values (CSV)" tutorial now includes three new sections, "How to Create a CSV File", "How to Escape Double Quotes, CR, and LF", and "How to Include a Header Line"....
Originally introduced in 1992 as "Snapshots" in Oracle 7, Materialized Views are now used in ways far removed from their original raison d'être, replication. Database programmers use them for data warehousing, denormalization, and even validation. Despite their versatility though, materialized views remain a mystery to some programmers due to their complexity. The new SQL Snippets tutorial "Materialized Views" strips away the mystery with its simple test cases, step-by-step exploration of the basics, common programming pitfall alerts, and a useful utility called MY_MV_CAPABILITIES which analyzes and reports a materialized view's capabilities in a single step....
Introduced in Oracle 11g the REGEXP_COUNT function greatly simplifies counting the number of times a pattern appears inside a string.
The following examples demonstrate how to use REGEXP_COUNT with some simple patterns. For versions prior to 11g alternative logic that provides similar functionality is also presented....
The SQL Snippets "Nulls and Equality" tutorial has been updated with new solutions and a discussion about the undocumented SYS_OP_MAP_NONNULL function....
: SQL Snippets Tutorials for Oracle Developers Custom Search Home A0 A0 SQL Features A0 A0 SQL Techniques A0 A0 Miscellany A0 A0 About A0 A0 Blog A0 A0 Site Map A0 A0 Search A0 A0 Home Blog A0 15 Minutes of Fame A0 Happy First Anniversary SQL Snippets A0 And Now for Something Completely Different A0 Google Street View A0 Getting IT Right A0 The Task Spiral A0 The Choice A0 It's Alive A0 Snippets in the Strangest Places A0 The Journey Begins A0 About the Author A0 Next A0 Read Using SQL Snippets before using any of this site's sample code or techniques on your own . systems Joe's Blog Happy First Anniversary SQL Snippets 2007-11-18 Well , it's been exactly one year since SQL Snippets first appeared on the web as a prototype site containing 33 pages viewed by a handful of visitors in its
SQL Snippets "Columns to Rows" section has been expanded to include a topic on using Oracle 11g's new UNPIVOT clause, which makes all prior techniques for transforming columns into rows now obsolete....
A new tutorial has been added to SQL Snippets which demonstrates how aggregate functions deal with null values. Techniques for generating results that ignore nulls and results that include nulls are highlighted....
The SQL Snippets "Integer Series Generator" section has been expanded to include new topics covering techniques for generating multiple integer series in a single query. Unlike previous topics which only demonstrated queries that created a single integer series, like 1,2,3,4, the new topics show how a query can generate a series like 1,2 for one row and 1,2,3 for another row in the same query....
A new, hierarchical technique for converting strings to rows has been added to the SQL Techniques Tutorials - String to Rows tutorial in SQL Snippets....
This tutorial has been updated to include a discussion of how hierarchical queries that do not have a CONNECT BY condition with PRIOR behave. A sample query that uses "PRIOR DBMS_RANDOM.VALUE IS NOT NULL" to make the CONNECT BY LEVEL technique conform to documented requirements has also been added....
: SQL Snippets Tutorials for Oracle Developers Custom Search Home A0 A0 SQL Features A0 A0 SQL Techniques A0 A0 Miscellany A0 A0 About A0 A0 Blog A0 A0 Site Map A0 A0 Search A0 A0 Home SQL Techniques Pattern Matching Over Rows A0 String Aggregation A0 Finding Patterns using REGEXP Functions A0 Measures A0 Setup A0 Cleanup A0 A0 Next A0 Read Using SQL Snippets before using any of this site's sample code or techniques on your own . systems Pattern Matching Over Rows This topic was inspired by Tom Kyte's So , in your opinion blog post about a new SQL feature Oracle is considering described at Pattern matching in sequences of rows I'll admit I've never tackled this kind of pattern matching before and I didn't understand the entire paper . It's a pretty dense read . From what I can tell though
This new SQL Snippets tutorial explores different approaches for implementing varying IN lists, including ones that use LIKE, MODEL, and integer series generator logic. The solutions will be presented as SQL commands, but the logic can be easily implemented in PL/SQL functions if required.
...
: SQL Snippets Tutorials for Oracle Developers Custom Search Home A0 A0 SQL Features A0 A0 SQL Techniques A0 A0 Miscellany A0 A0 About A0 A0 Blog A0 A0 Site Map A0 A0 Search A0 A0 Home Blog A0 15 Minutes of Fame A0 Happy First Anniversary SQL Snippets A0 And Now for Something Completely Different A0 Google Street View A0 Getting IT Right A0 The Task Spiral A0 The Choice A0 It's Alive A0 Snippets in the Strangest Places A0 The Journey Begins A0 About the Author A0 Next A0 Read Using SQL Snippets before using any of this site's sample code or techniques on your own . systems Joe's Blog And Now for Something Completely Different 2007-06-28 Every once in a while my non-programmer friends give me feedback about my site like the blog posts are good , but when it comes to all that SQL stuff ,
: SQL Snippets Tutorials for Oracle Developers Custom Search Home A0 A0 SQL Features A0 A0 SQL Techniques A0 A0 Miscellany A0 A0 About A0 A0 Blog A0 A0 Site Map A0 A0 Search A0 A0 Home Blog A0 15 Minutes of Fame A0 Happy First Anniversary SQL Snippets A0 And Now for Something Completely Different A0 Google Street View A0 Getting IT Right A0 The Task Spiral A0 The Choice A0 It's Alive A0 Snippets in the Strangest Places A0 The Journey Begins A0 About the Author A0 Next A0 Read Using SQL Snippets before using any of this site's sample code or techniques on your own . systems Joe's Blog Google Street View 2007-06-08 Here's something cool . A new Google Maps feature called Street View is available for some streets . With it you can virtually walk down a road seeing actual street level
In this blog, we're walking you through one of the most popular MySQL backup tools - ZRM - and a couple of others. Have a read!…
The post Backing up MySQL Part 8: Zmanda Backups for MySQL & Other Backup Tools appeared first on Simple Talk.
In this article, we look at constraints in Snowflake such as PRIMARY KEY, UNIQUE KEY, FOREIGN KEY, and NOT NULL and how they are enforced in Snowflake.
If you want to use cloud resources efficiently, learn how to make sure you fully address five main areas of cloud management: costs, regulations, resources, identity, and deployment automation.
In this article, I want to talk about a topic that you may never need. The only time I have really had need to look at the bits in a byte pattern. In (what is now) ancient versions of SQL Server didn't have such self-describing columns like in its metadata objects like it does now.…
The post Dealing with the Bits of a Binary Value in SQL Server appeared first on Simple Talk.